package com.jwj.service.impl;

import com.jwj.Dao.PictureDao;
import com.jwj.pojo.Picture;
import com.jwj.service.PictureService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigInteger;
import java.util.List;

@Service
public class PictureServiceImpl implements PictureService {

    @Resource
    private PictureDao pictureDao;

    @Override
    public List<Picture> PictureAll() {
        return pictureDao.PictureAll();
    }

    @Override
    public int PictureAdd2(BigInteger img_id, String img_url, String img_name, String img_alt) {
        return pictureDao.PictureAdd2(img_id,img_url,img_name,img_alt);
    }

    @Override
    public int PictureAdd(String img_url, String img_name, String img_alt) {
        return pictureDao.PictureAdd(img_url,img_name,img_alt);
    }


    @Override
    public int PictureDelete(BigInteger img_id) {
        return pictureDao.PictureDelete(img_id);
    }

}
